package com.tulei.api.ocr;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
class TableData {
    @JsonProperty("tables_result")
    List<Table> tablesResult;
    @JsonProperty("table_num")
    private int tableNum;
    @JsonProperty("log_id")
    private String logId;
}
@Data
class Table {
    private List<TableCell> header;
    private List<TableCellBody> body;
    private List<TableCell> footer;
    @JsonProperty("table_location")
    private List<Local> tableLocation;
}
@Data
class TableCell {
    String words;
    List<Local> location;
}
@Data
class TableCellBody {
    @JsonProperty("col_end")
    private int colEnd;
    @JsonProperty("row_end")
    private int rowEnd;
    @JsonProperty("row_start")
    private int rowStart;
    @JsonProperty("col_start")
    private int colStart;
    String words;
    @JsonProperty("cell_location")
    List<Local> cellLocation;
}
@Data
class Local{
    private int x;
    private int y;
}